import { FUN_IDS_OPTIONS } from 'common/consts'

export const PASSING_STATE = {
  0: { codeNum: '0', codeName: '不及格', codeTypeNum: 'PASSING_STATE', className: 'is-red' },
  1: { codeNum: '1', codeName: '及格', codeTypeNum: 'PASSING_STATE', className: 'is-green' }
}

export const COL_INDEXS = [{
  prop: 'nickName',
  label: '姓名'
}, {
  prop: 'lessonName',
  label: '课时名称'
}, {
  prop: 'exerciseType',
  label: '练习项目',
  isMap: true,
  mapOptions: FUN_IDS_OPTIONS
}, {
  prop: 'createTime',
  label: '练习时间'
}, {
  prop: 'useTime',
  label: '练习时长'
}, {
  prop: 'comprehensiveScore',
  label: '练习得分',
  unit: '分',
  isJudgeColor: true
}, {
  prop: 'passingState',
  label: '及格状态',
  isMap: true,
  mapOptions: PASSING_STATE
}, {
  prop: 'exerciseNumber',
  label: '练习次数',
  prevTxt: '第',
  unit: '次'
}];
